package com.baitiaojun.video.api;

import com.baitiaojun.api.domain.video.CollectionGroup;
import com.baitiaojun.api.vo.JsonRes;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

/**
 * @类名 CollectionGroupApi
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2022/12/24 18:30
 * @版本 1.0
 */
@Api("视频收藏夹接口")
@RequestMapping("/video/collection-group")
public interface CollectionGroupApi {

    @ApiOperation("添加收藏夹")
    @PostMapping("/new-collection-group")
    JsonRes addCollectionGroup(@ApiParam(value = "收藏夹实体", required = true) @RequestBody CollectionGroup collectionGroup) throws Exception;

    @ApiOperation("更新收藏夹")
    @PutMapping("/edit-collection-group")
    JsonRes updateCollectionGroup(@ApiParam(value = "收藏夹实体", required = true) @RequestBody CollectionGroup collectionGroup) throws Exception;

    @ApiOperation("删除收藏夹")
    @DeleteMapping("/cancel-collection-group")
    JsonRes cancelCollectionGroup(@ApiParam(value = "分组id", required = true) @RequestParam Long groupId) throws Exception;

    @ApiOperation("查看收藏夹列表")
    @GetMapping("/collection-groups")
    JsonRes getCollectionGroups(Long userInfoId) throws Exception;
}
